package com.syni.mdd.sjb.common.component.utils.feign.dto.mddAll.apiCoupon;

import lombok.Data;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Data
public class SearchVerCouponDetailDto {
    //入参
    private String verRecordId;
    private Integer businessId;

    private Integer codeType;
    //购买券信息
    private BmsGroupBuyDetailData buyDetailData;
    //领取券信息
    private UserReceDetailData userReceDetailData;
    //订单信息
    private BmsDxOrderData bmsDxOrders;
    //核销信息
    private VerRecordData verData;
    //券码信息
    private List<String> codes = new ArrayList<>();

    @Data
    public static class VerRecordData{
        private String userName = "觅东东用户";
        private Date verTime;
        private Integer verWay = 1;
        private Integer verNum;
        private String verName;
    }

    @Data
    public static class BmsDxOrderData{
        private String orderNo;
        private String userName = "觅东东用户";
        private Double discountMoney = 0d;
        private Double userPay = 0d;
        private Double shopMoney = 0d;
    }

    @Data
    public static class BusinessData{
        private String vendorName;
        private String logoUrl;
    }

    @Data
    public static class BmsGroupBuyDetailData{
        private Integer showTemplateId = 1;
        private Integer id;
        private BusinessData business;
        private String groupName;
        private String groupImg;

        private Date expireTime;

        List<GroupContent> groupContent = new ArrayList<>();


        private String textContent;

        private List<String> groupDetails = new ArrayList<>();

        private String receivedDesc = "";
    }

    @Data
    public static class GroupContent{
        private Integer libraryId;
        private String foodTypeName;
        List<BmsDxSubFood> bmsDxSubFoods;
        private String choose = "1";


    }

    @Data
    public static class BmsDxSubFood{
        private Integer id;

        private String foodName;

        private Double foodPrice;

        private Integer foodNum;
    }


    @Data
    public static class UserReceDetailData{
        private Integer couponType;
        private String couponDesc;
        private String couponName;
        private BusinessData business;
        private Date expireTime;
        private String groupImg = null;
    }
}
